package com.xbongbong.workflow.service.strategy.node;

import com.xbongbong.workflow.domain.entity.WorkflowNodeEntity;
import com.xbongbong.paas.exception.WorkflowException;
import com.xbongbong.workflow.pojo.WorkflowTransferPOJO;
import com.xbongbong.workflow.pojo.bo.WorkflowNoApproverBo;

/**
 *
 * @author 魏荣杰
 *
 */
public interface WorkflowApprovalStrategy {
    /**
     * Description: 创建审批节点任务
     * @param workflowTransferPOJO 工作流流转pojo
     * @param nodeEntity 流转到的模板节点
     * @param lastNodeId 前一个nodeid
     * @return boolean 返回当前节点是否自动通过后要继续流转到下一个节点，true是，false否
     * @throws
     * @author 魏荣杰
     * @date 2021/5/13 10:46
     * @since
     */
    WorkflowNoApproverBo createTaskNode(WorkflowTransferPOJO workflowTransferPOJO, WorkflowNodeEntity nodeEntity, Long lastNodeId) throws WorkflowException;
}
